package prototype

import "fmt"

type PersonalInfo struct {
	name string
	sex  string
	age  string
}

type WorkExperience struct {
	timeArea string
	company  string
}

type Resume struct {
	PersonalInfo
	WorkExperience
}

func (r *Resume) SetPersonalInfo(name string, sex string, age string) {
	r.name = name
	r.sex = sex
	r.age = age
}

func (r *Resume) SetWorkExperience(timeArea string, company string) {
	r.timeArea = timeArea
	r.company = company
}

func (r *Resume) Display() {
	fmt.Println(r.name, r.sex, r.age)
	fmt.Println("工作经历：", r.timeArea, r.company)
}

func (r *Resume) Clone() *Resume {
	resume := *r
	return &resume
}